//
//  LoginUserModel.m
//  CoachsBook
//
//  Created by huiyong li on 2022/9/2.
//

#import "LoginUserModel.h"

@implementation LoginUserModel

- (void)setValue:(id)value forUndefinedKey:(NSString *)key{}

- (void)encodeWithCoder:(NSCoder *)enCoder{
    [enCoder encodeObject:self.customerId forKey:@"customerId"];
    [enCoder encodeObject:self.token forKey:@"token"];
    [enCoder encodeObject:self.personalIcon forKey:@"personalIcon"];
    [enCoder encodeObject:self.username forKey:@"username"];
    [enCoder encodeObject:self.mobile forKey:@"mobile"];
    [enCoder encodeObject:self.birth forKey:@"birth"];
    [enCoder encodeObject:self.aliId forKey:@"aliId"];
    [enCoder encodeObject:self.wechatId forKey:@"wechatId"];
    [enCoder encodeObject:self.password forKey:@"password"];
    [enCoder encodeObject:self.currentPosition forKey:@"currentPosition"];
    [enCoder encodeObject:self.inviteId forKey:@"inviteId"];
    [enCoder encodeObject:self.gmtCreate forKey:@"gmtCreate"];
    [enCoder encodeObject:self.gmtModified forKey:@"gmtModified"];
    [enCoder encodeObject:self.tokenExpireTime forKey:@"tokenExpireTime"];
    [enCoder encodeObject:self.sex forKey:@"sex"];
    [enCoder encodeObject:self.vipTime forKey:@"vipTime"];
    [enCoder encodeInt:self.vipType forKey:@"vipType"];
    
}
- (id)initWithCoder:(NSCoder *)aDecoder{
    if (self = [super init]) {
        self.customerId=[aDecoder decodeObjectForKey:@"customerId"];
        self.token=[aDecoder decodeObjectForKey:@"token"];
        self.personalIcon=[aDecoder decodeObjectForKey:@"personalIcon"];
        self.username=[aDecoder decodeObjectForKey:@"username"];
        self.mobile=[aDecoder decodeObjectForKey:@"mobile"];
        self.birth=[aDecoder decodeObjectForKey:@"birth"];
        self.aliId=[aDecoder decodeObjectForKey:@"aliId"];
        self.wechatId=[aDecoder decodeObjectForKey:@"wechatId"];
        self.password=[aDecoder decodeObjectForKey:@"password"];
        self.currentPosition=[aDecoder decodeObjectForKey:@"currentPosition"];
        self.inviteId=[aDecoder decodeObjectForKey:@"inviteId"];
        self.gmtCreate=[aDecoder decodeObjectForKey:@"gmtCreate"];
        self.gmtModified=[aDecoder decodeObjectForKey:@"gmtModified"];
        self.tokenExpireTime=[aDecoder decodeObjectForKey:@"tokenExpireTime"];
        self.sex=[aDecoder decodeObjectForKey:@"sex"];
        self.vipTime=[aDecoder decodeObjectForKey:@"vipTime"];
        self.vipType=[aDecoder decodeIntForKey:@"vipType"];

    }
    return self;
}

@end
